<?php
use_helper('I18N');
?>
<div class="sidebar" id="sidebar">
<script type="text/javascript">
    try {
        ace.settings.check('sidebar', 'fixed')
    } catch(e) {
    }
</script>

<div class="sidebar-shortcuts" id="sidebar-shortcuts">
    <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
        <button class="btn btn-success">
            <i class="icon-signal"></i>
        </button>

        <button class="btn btn-info">
            <i class="icon-pencil"></i>
        </button>

        <button class="btn btn-warning">
            <i class="icon-group"></i>
        </button>

        <button class="btn btn-danger">
            <i class="icon-cogs"></i>
        </button>
    </div>

    <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
        <span class="btn btn-success"></span>

        <span class="btn btn-info"></span>

        <span class="btn btn-warning"></span>

        <span class="btn btn-danger"></span>
    </div>
</div>
<!-- #sidebar-shortcuts -->
<?php
$mainMenu = $sf_user->getAttribute(Globals::SESSION_MAIN_MENU);
$subMenu = $sf_user->getAttribute(Globals::SESSION_SUB_MENU);
?>
<ul class="nav nav-list">
<li <?php if ($mainMenu == "SUMMARY") { echo "class='active open'"; }?>>
    <a href="/member/summary">
        <i class="icon-dashboard"></i>
        <span class="menu-text"> <?php echo __('Home'); ?> </span>
    </a>
</li>

<li <?php
        if ($mainMenu == "REGISTRATION") { echo "class='active open'"; } ?>>
    <a href="#" class="dropdown-toggle">
        <i class="icon-edit"></i>
        <span class="menu-text"> <?php echo __('Registration'); ?> </span>

        <b class="arrow icon-angle-down"></b>
    </a>

    <ul class="submenu">
        <li <?php if ($subMenu == "REGISTRATION") { echo "class='open'"; }?>>
            <a href="/member/memberRegistration">
                <i class="icon-double-angle-right"></i>
                <?php echo __('Member Registration'); ?>
            </a>
        </li>

        <?php if ($mlmIb) { ?>
        <!--<li <?php /*if ($subMenu == "ACTIVE_MEMBER") { echo "class='open'"; }*/?>>
            <a href="/member/activeMember">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('Activate Member'); */?>
            </a>
        </li>

        <li <?php /*if ($subMenu == "ACTIVE_MEMBER_LIST") { echo "class='open'"; }*/?>>
            <a href="/member/activeMemberList">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('Active Member List'); */?>
            </a>
        </li>

        <li <?php /*if ($subMenu == "INACTIVE_MEMBER") { echo "class='open'"; }*/?>>
            <a href="/member/inactiveMemberList">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('In-active Member List'); */?>
            </a>
        </li>-->
        <?php } ?>

        <li <?php if ($subMenu == "FUNDS_DEPOSIT") { echo "class='open'"; }?>>
            <a href="/member/fundsDeposit">
                <i class="icon-double-angle-right"></i>
                <?php echo __('Funds Deposit'); ?>
            </a>
        </li>

        <li <?php if ($subMenu == "REDEEM_MP") { echo "class='open'"; }?>>
            <a href="<?php echo url_for("/member/redeemMp") ?>">
                <i class="icon-double-angle-right"></i>
                <?php echo __('MP Redemption'); ?>
            </a>
        </li>

        <li <?php if ($subMenu == "MG_MANAGEMENT") { echo "class='open'"; }?>>
            <a href="<?php echo url_for("/member/mgManagement") ?>">
                <i class="icon-double-angle-right"></i>
                <?php echo __('MG Management'); ?>
            </a>
        </li>

        <!--<li <?php /*if ($subMenu == "RELOAD_MT4_FUND") { echo "class='open'"; }*/?>>
            <a href="/member/reloadTopup">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('Reload MT4 Fund'); */?>
            </a>
        </li>-->

    </ul>
</li>

<li <?php if ($mainMenu == "BUSINESS_NETWORK") { echo "class='active open'"; }?>>
    <a href="#" class="dropdown-toggle">
        <i class="icon-list"></i>
        <span class="menu-text"> <?php echo __('Business Network'); ?> </span>

        <b class="arrow icon-angle-down"></b>
    </a>

    <ul class="submenu">
        <li <?php if ($subMenu == "SPONSOR_GENEALOGY") { echo "class='open'"; }?>>
            <a href="/member/sponsorTree">
                <i class="icon-double-angle-right"></i>
                <?php echo __('Sponsor Genealogy'); ?>
            </a>
        </li>
    </ul>
</li>

<li <?php if ($mainMenu == "MY_STATEMENT") { echo "class='active open'"; }?>>
    <a href="#" class="dropdown-toggle">
        <i class="icon-list-alt"></i>
        <span class="menu-text"> <?php echo __('My Statement'); ?> </span>

        <b class="arrow icon-angle-down"></b>
    </a>

    <ul class="submenu">
        <!--<li <?php /*if ($subMenu == "MP_REBATE") { echo "class='open'"; }*/?>>
            <a href="<?php /*echo url_for("/member/mpRebate") */?>">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('MP Rebate'); */?>
            </a>
        </li>-->

        <li <?php if ($subMenu == "ACCOUNT_SUMMARY") { echo "class='open'"; }?>>
            <a href="<?php echo url_for("/member/accountSummary") ?>">
                <i class="icon-double-angle-right"></i>
                <?php echo __('Account Summary'); ?>
            </a>
        </li>

        <li <?php if ($subMenu == "REGISTER_POINT_LOG") { echo "class='open'"; }?>>
            <a href="<?php echo url_for("/member/registerPointLog") ?>">
                <i class="icon-double-angle-right"></i>
                <?php echo __('Register Point Statement'); ?>
            </a>
        </li>

        <li <?php if ($subMenu == "MP_LOG") { echo "class='open'"; }?>>
            <a href="<?php echo url_for("/member/mpLog") ?>">
                <i class="icon-double-angle-right"></i>
                <?php echo __('MP Statement'); ?>
            </a>
        </li>

        <li <?php if ($subMenu == "MG_LOG") { echo "class='open'"; }?>>
            <a href="<?php echo url_for("/member/mgLog") ?>">
                <i class="icon-double-angle-right"></i>
                <?php echo __('MG Statement'); ?>
            </a>
        </li>

        <!--<li <?php /*if ($subMenu == "MT4_LOG") { echo "class='open'"; }*/?>>
            <a href="<?php /*echo url_for("/member/mt4Log") */?>">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('MT4 Statement'); */?>
            </a>
        </li>-->
    </ul>
</li>

<li <?php if ($mainMenu == "COMMISSION") { echo "class='active open'"; }?>>
    <a href="/member/bonusDetails">
        <i class="icon-bar-chart"></i>
        <span class="menu-text"> <?php echo __('Commission List'); ?> </span>
    </a>
</li>


<!--<li <?php /*if ($mainMenu == "WITHDRAWAL") { echo "class='active open'"; }*/?>>
    <a href="#" class="dropdown-toggle">
        <i class="icon-external-link"></i>
        <span class="menu-text"> <?php /*echo __('Withdrawal'); */?> </span>

        <b class="arrow icon-angle-down"></b>
    </a>

    <ul class="submenu">
        <li <?php /*if ($subMenu == "MG_WITHDRAWAL") { echo "class='open'"; }*/?>>
            <a href="<?php /*echo url_for("/member/mgWithdrawal") */?>">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('MG Withdrawal'); */?>
            </a>
        </li>
    </ul>
</li>-->

<!--<li <?php /*if ($mainMenu == "REPORT") { echo "class='active open'"; }*/?>>
    <a href="#" class="dropdown-toggle">
        <i class="icon-external-link"></i>
        <span class="menu-text"> <?php /*echo __('Report'); */?> </span>

        <b class="arrow icon-angle-down"></b>
    </a>

    <ul class="submenu">
        <li <?php /*if ($subMenu == "DAILY_REPORT") { echo "class='open'"; }*/?>>
            <a href="<?php /*echo url_for("/report/dailyReport") */?>">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('Daily Report'); */?>
            </a>
        </li>
        <li <?php /*if ($subMenu == "MONTHLY_REPORT") { echo "class='open'"; }*/?>>
            <a href="<?php /*echo url_for("/report/monthlyReport") */?>">
                <i class="icon-double-angle-right"></i>
                <?php /*echo __('Monthly Report'); */?>
            </a>
        </li>
    </ul>
</li>-->

<li <?php if ($mainMenu == "MEDIA_DOWNLOAD") { echo "class='active open'"; } ?>>
    <a href="/download/media">
        <i class="icon-download"></i>
        <span class="menu-text"> <?php echo __('Media Download'); ?> </span>
    </a>
</li>

<li <?php if ($mainMenu == "APPLY_VISA") { echo "class='active open'"; } ?>>
    <a href="/member/applyVisaCard">
        <i class="icon-credit-card"></i>
        <span class="menu-text"> <?php echo __('Apply VISA Card'); ?> </span>
    </a>
</li>

<li <?php if ($mainMenu == "CS_CENTER") { echo "class='active open'"; } ?>>
    <a href="/member/customerEnquiry">
        <i class="icon-comments"></i>
        <span class="menu-text"> <?php echo __('CS Center'); ?> </span>
    </a>
</li>

<li <?php if ($mainMenu == "APPLY_DEALER") { echo "class='active open'"; } ?>>
    <a href="/member/applyDealer">
        <i class="icon-tag"></i>
        <span class="menu-text"> <?php echo __('Apply Dealer'); ?> </span>
    </a>
</li>

<li <?php if ($mainMenu == "APPLY_CLUB") { echo "class='active open'"; } ?>>
    <a href="/member/applyClub">
        <i class="icon-file-alt"></i>
        <span class="menu-text"> <?php echo __('Apply Club'); ?> </span>
    </a>
</li>

</ul>
<!-- /.nav-list -->

<div class="sidebar-collapse" id="sidebar-collapse">
    <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
</div>

<script type="text/javascript">
    try {
        ace.settings.check('sidebar', 'collapsed')
    } catch(e) {
    }
</script>
</div>